function jsonp(url) { 
    script      = document.createElement("script"); 
    script.type = "text/javascript"; 
    script.src  = url; 
    document.getElementsByTagName("head")[0].appendChild(script); 
} 

//------------------------------------------------------------
var txtservices = localStorage["services"];

if (!(txtservices || 0)) {

	services = {	'OpenStreetMap': { url:'http://www.openstreetmap.org/?mlat=[LAT]&mlon=[LONG]&zoom=[ZOOM]&layers=B000FTF', icon:'openstreetmap.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'Google Maps': { url:'http://maps.google.com/?sll=[LAT],[LONG]', icon:'google.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'Wikimapia': { url:'http://www.wikimapia.org/#lat=[LAT]&lon=[LONG]&z=[ZOOM]', icon:'wikimapia.png', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'GeoURL': { url:'http://geourl.org/near?lat=[LAT]&long=[LONG]', icon:'geourl.png', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'Yahoo! Maps': { url:'http://maps.yahoo.com/#mvt=h&lon=[LONG]&lat=[LAT]&mag=1', icon:'yahoo.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'Microsoft Live Local': { url:'http://local.live.com/default.aspx?cp=[LAT]~[LONG]&style=h&lvl=17', icon:'bing.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'Multimap': { url:'http://www.multimap.com/maps/?t=l&map=[LAT],[LONG]|[ZOOM}|4', icon:'multimap.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'MapQuest': { url:'http://www.mapquest.fr/mq/maps/latlong.do?pageId=latlong&latLongType=decimal&txtLatitude=[LAT]&txtLongitude=[LONG]', icon:'mapquest.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true} ,
					'ViaMichelin': { url:'http://www.viamichelin.fr/web/Cartes/[LONG]*[LAT]?zoomLevel=[ZOOM]', icon:'viamichelin.ico', zoom:14, zoom_mini:1, zoom_maxi:18, enable:true},
					'Ask': { url:'http://maps.ask.com/maps?a=[LAT],[LONG]', icon:'ask.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true},
					'Panoramio': { url:'http://www.panoramio.com/map/#lt=[LAT]&ln=[LONG]&z=[ZOOM]&k=1&a=1&tab=1', icon:'panoramio.png', zoom:3, zoom_mini:1, zoom_maxi:18, enable:true},
					'Flickr': { url:'http://www.flickr.com/map/?&fLat=[LAT]&fLon=[LONG]&zl=1', icon:'flickr.ico', zoom:18, zoom_mini:1, zoom_maxi:18, enable:true},
					'Geocaching': { url:'http://www.geocaching.com/map/default.aspx?lat=[LAT]&lng=[LONG]&zm=[ZOOM]', icon:'geocaching.png', zoom:12, zoom_mini:9, zoom_maxi:15, enable:true},
	};
					
	localStorage["services"] = JSON.stringify(services);
	
} else services = JSON.parse(txtservices);
//------------------------------------------------------------

//------------------------------------------------------------
var txtmaps = localStorage["maps"];

if (!(txtmaps || 0)) {

	maps = {	'Googe Maps' : {zoom:10, icon:'google.ico', enable:true} 
	};
	
	localStorage["maps"] = JSON.stringify(maps);

} else maps = JSON.parse(txtmaps);
//------------------------------------------------------------	
	
//------------------------------------------------------------
var version = localStorage["version"];

if(typeof(version) == "undefined") {
	delete localStorage["zoom"];
	version = '0.0.8'
	localStorage["version"] = version;
	services.Geocaching = { url:'http://www.geocaching.com/map/default.aspx?lat=[LAT]&lng=[LONG]&zm=[ZOOM]', icon:'geocaching.png', zoom:12, zoom_mini:9, zoom_maxi:15, enable:true};
	localStorage["services"] = JSON.stringify(services);
} else {
	switch (version) {
	case '0.0.8':
	
	}
}
//------------------------------------------------------------
